home *** CD-ROM | disk | FTP | other *** search
- on hBtnToggle vchannel, vUpBtnNum, vDnBtnNum
- puppetSound("CLICK")
- updateStage()
- puppetSprite(vchannel, 1)
- repeat while the mouseDown
- set vClickState to setBtn(vchannel, vUpBtnNum, vDnBtnNum)
- updateStage()
- end repeat
- puppetSprite(vchannel, 0)
- puppetSound(0)
- return vClickState
- end
-
- on setBtn vchannel, vUpBtnNum, vDnBtnNum
- if rollOver(vchannel) then
- set the castNum of sprite vchannel to vDnBtnNum
- set flag to 1
- else
- set the castNum of sprite vchannel to vUpBtnNum
- set flag to 0
- end if
- return flag
- end
-